﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Domain
{
    /// <summary>
    /// 请假申请
    /// </summary>
    public class Leave
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 操作人id
        /// </summary>
        public int OperatorId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string LeaveName { get; set; }
        /// <summary>
        /// 部门编号
        /// </summary>
        public int DepartId { get; set; }
        /// <summary>
        /// 请假类别
        /// </summary>
        public int LeaveType { get; set; }
        /// <summary>
        /// 请假时间
        /// </summary>
        public DateTime LeaveCreateTime { get; set; }
        /// <summary>
        /// 报到时间
        /// </summary>
        public DateTime CoverageTime { get; set; }
        /// <summary>
        /// 总工时
        /// </summary>
        public int TotalHours { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string Cause { get; set; }
        /// <summary>
        /// 部门领导
        /// </summary>
        public int DepartmentHeads { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int Appstatus { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
    }
}
